/*
 * SWTIMERCE.h
 *
 *  Created on: 17/11/2012
 *      Author: Richard
 */

#ifndef SWTIMERCE_H_
#define SWTIMERCE_H_

#include "SWTIMERC1.h"

typedef enum
{
   SWTIM_nenOneShotMode,
   SWTIM_nenPeriodicMode
} _SWTIM_tenTimerMode;

typedef struct _SWTIM_tstTimer
{
   /* Internal */
   struct _SWTIM_tstTimer  *next;
   uint16                   timeout;

   /* Timer Parameters */
   uint16                   interval;
   _SWTIM_tenTimerMode      mode;
   void                     (*handler)(struct _SWTIM_tstTimer *timer);
} SWTIM_tstTimer;

#endif /* SWTIMERCE_H_ */
